package cn.anosi.config;

import java.io.IOException;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;
import com.jagregory.shiro.freemarker.ShiroTags;
import freemarker.template.TemplateException;

/**
 * freemarker shiro标签
 * @author lys
 *
 */
public class ShiroTagFreeMarkerConfigurer extends FreeMarkerConfigurer {
	 
    @Override
    public void afterPropertiesSet() throws IOException, TemplateException {
        super.afterPropertiesSet();
        this.getConfiguration().setSharedVariable("shiro", new ShiroTags());
    }
     
}
